package com.xl.activiti.demo.service;

import cn.hutool.json.JSONObject;
import org.activiti.engine.delegate.DelegateExecution;

import java.util.Map;

public interface InterfaceService {

    /**
     * get请求接口
     * @param url
     * @param params
     * @return
     */
    JSONObject httpGet(String url, Map<String, Object> params);

    JSONObject httpGet(DelegateExecution execution);

    /**
     * post请求接口
     * @param url
     * @param params
     * @return
     */
    JSONObject httpPost(String url, Map<String, Object> params);

    JSONObject httpPost(DelegateExecution execution);

}
